### Drives

| Function name | Description | Type | Source code |
| - | - | - | - |
| `list-drives` | Lists the available drives for the authenticated user. | [Action](/guides/use-cases/actions) | [🔗 Github](https://github.com/NangoHQ/integration-templates/blob/main/integrations/one-drive/actions/list-drives.ts) |

### Files

| Function name | Description | Type | Source code |
| - | - | - | - |
| `fetch-file` | This action will be used to fetch the latest file download_url which can be used to download the actual file. | [Action](/guides/use-cases/actions) | [🔗 Github](https://github.com/NangoHQ/integration-templates/blob/main/integrations/one-drive/actions/fetch-file.ts) |
| `user-files` | Fetch all files from the user's OneDrive and sync the metadata for each file. | [Sync](/guides/use-cases/syncs) | [🔗 Github](https://github.com/NangoHQ/integration-templates/blob/main/integrations/one-drive/syncs/user-files.ts) |
| `user-files-selection` | Fetch selected files from a user's OneDrive based on provided metadata. | [Sync](/guides/use-cases/syncs) | [🔗 Github](https://github.com/NangoHQ/integration-templates/blob/main/integrations/one-drive/syncs/user-files-selection.ts) |